/*	This software is under  GNU GENERAL PUBLIC LICENSE Version 2, June 1991
*	for more information read COPYING.TXT
*	Dimitri Sean Ribeiro - 5118549
*/

#ifndef COMANDO_H
#define COMANDO_H

#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <argz.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>

#include "shell.h"

#define MODOAPPEND 1
#define MODOOVERWRITE 0
#define FOREGROUND 0
#define BACKGROUND 1

int select_command(command_line_t);
int free_com(command_line_t *, int);
int execute_command(command_line_t, int);
int execute_command_arq(command_line_t, char *, int);
int execute_command_err(command_line_t, char *);
int execute_command_dup(command_line_t, char *);
int execute_command_arq_input(command_line_t, char *);
int execute_command_pipe(command_line_t, command_line_t *);
int execute_pipe(command_line_t, command_line_t *);

#endif	
